//import './plugins/element.js'

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router';//routertest-main.js里面的对router的引用
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

 
const app = createApp(App)

app.use(router); // 确保已经使用 router，也是引用过来的

app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
